package com.yoso.log.infrastructure.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.stereotype.Component;

/**
 * @author shizejin
 * @date 2022/9/6
 * @description:
 */
@Slf4j
@Component
@EnableBinding({Sink.class})
public class StreamListener {
    @org.springframework.cloud.stream.annotation.StreamListener(Sink.INPUT)
    public void handleMonitorEvent(String message) {
        log.info("接收到的消息:{}", message);
    }
}
